<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class NetCourseStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'province' => 'bail|required|array',
            'name' => 'bail|required|string',
            'icon' => 'bail|nullable|string',
            'thumb' => 'bail|nullable|string',
            'course_column_ids' => 'bail|required|array',
            'components' => 'bail|nullable|array',
            'section_count' => 'bail|nullable|int',
        ];
    }
}
